package com.hcb.micro.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hcb.micro.dao.interfaceClass.CategoryMallMapper;
import com.hcb.micro.dto.Category;
import com.hcb.micro.dto.CategoryMall;
import com.hcb.micro.service.ICategoryMallService;

@Service("CategoryMallService")
public class CategoryMallServiceImpl implements ICategoryMallService {

	@Autowired
	CategoryMallMapper categoryMallMapper;
	
	@Override
	public int deleteByPrimaryKey(Integer id) {
		return categoryMallMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(CategoryMall record) {
		return categoryMallMapper.insert(record);
	}

	@Override
	public int insertSelective(CategoryMall record) {
		return categoryMallMapper.insertSelective(record);
	}

	@Override
	public CategoryMall selectByPrimaryKey(Integer id) {
		return categoryMallMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(CategoryMall record) {
		return categoryMallMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(CategoryMall record) {
		return categoryMallMapper.updateByPrimaryKey(record);
	}

	@Override
	public List<Category> selectCategoryByPara(Map<String, Object> para) {
		return categoryMallMapper.selectCategoryByPara(para);
	}

	@Override
	public List<String> selectMallUuidListByCategoryId(Integer categoryId) {
		return categoryMallMapper.selectMallUuidListByCategoryId(categoryId);
	}

	@Override
	public CategoryMall selectByCategoryIdAndMallUuid(Map<String, Object> para) {
		return categoryMallMapper.selectByCategoryIdAndMallUuid(para);
	}

	@Override
	public List<CategoryMall> selectByCategoryId(Map<String, Object> para) {
		return categoryMallMapper.selectByCategoryId(para);
	}

}
